<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>商品列表</title>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"
          integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body>
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2" th:each="good, iterStat:${goods}">
            <div class="thumbnail">
                <img th:src="${good.smallPic}" alt="...">
                <div class="caption">
                    <h3 th:text="${good.title}"></h3>
                    <p th:text="${good.introduction}"></p>
                    <p><span>价格</span><span th:text="${good.price}"></span></p>
                    <p><a th:href="${'/goods/deatil/'+good.id}" class="btn btn-danger" role="button">立即购买</a> <a
                            th:href="${'/goods/deatil/'+good.id}" class="btn btn-default" role="button">详情</a></p>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"
        integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
        crossorigin="anonymous"></script>
<script>

</script>
</body>
</html>